package container

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/container"
)

func NewStack(objects ...fyne.CanvasObject) *fyne.Container {
	return container.NewStack(objects...)
}
func NewCenter(objects ...fyne.CanvasObject) *fyne.Container {
	return container.New(newCenterLayout(), objects...)
}
func NewSize(size fyne.Size, objects ...fyne.CanvasObject) *fyne.Container {
	return container.New(newSizeLayout(size), objects...)
}
func NewSizeMax(size fyne.Size, objects ...fyne.CanvasObject) *fyne.Container {
	return container.New(newSizeMaxLayout(size), objects...)
}
func NewVBox(objects ...fyne.CanvasObject) *fyne.Container {
	return container.New(newVBoxLayout(), objects...)
}
func NewVBoxNoPadding(objects ...fyne.CanvasObject) *fyne.Container {
	return container.New(newVBoxLayoutCustomPadding(0), objects...)
}
func NewVBoxPadding(padding float32, objects ...fyne.CanvasObject) *fyne.Container {
	return container.New(newVBoxLayoutCustomPadding(padding), objects...)
}
func NewHBox(objects ...fyne.CanvasObject) *fyne.Container {
	return container.New(newHBoxLayout(), objects...)
}
func NewHBoxNoPadding(objects ...fyne.CanvasObject) *fyne.Container {
	return container.New(newHBoxLayoutCustomPadding(0), objects...)
}
func NewHBoxPadding(padding float32, objects ...fyne.CanvasObject) *fyne.Container {
	return container.New(newHBoxLayoutCustomPadding(padding), objects...)
}
